import { http } from '@/apis/http';
import type { ApiResponse } from '@/apis/types/Response';
import type { Category } from '@/apis/types/Category';

export const categoryApi = {
    /**
     * 获取分类列表
     */
    getList() {
        return http.get<ApiResponse<Category[]>>('/content/category/countList');
    }
}